﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<WebSite.Models.IndexModel>" %>
<%@ Import Namespace="WebSite.App_Code" %>
<%@ Import Namespace="WebSite.App_Data" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Home Page
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    
    <%--<script type="text/javascript">

        $(document).ready(function () {

            $("#progressbar").progressbar({ value: false });
            
            if ('<%=ViewData.ContainsKey("DB.Operation.Result") %>' == "True")
                alert('<%=ViewData["DB.Operation.Result"] %>');
            
            <% if (Session["Home.Index.UploadReview"] != null) { %>
                $(function () {
                    $("#dialog-UploadReview").dialog({
                        height: 500,
                        width: 800,
                        modal: true
                    });
                });
            <% } %>

        });

        function openUploadWin() {
            $(function () {
                $("#dialog-UploadTemplate").dialog({
                    height: 240,
                    width: 500,
                    modal: true
                });
            });
        }

        function Pending(on_off) {

            if (on_off) {

                $("#dialog-Wait").pending({
                    height: 33,
                    width: 700,
                    modal: true,
                    closeOnEscape: false
                });
            }
            else {

                $("#dialog-Wait").pending(false);
            }
        }

    </script>--%>

    <table border="0" cellpadding="0" cellspacing="0">
        <tr>
            <td style="border:1px solid black; border-bottom:none; background-color:#5585D5; color:White; padding:5px 0px 5px 20px; width:100px">
                信息栏
            </td>
            <td style="border-bottom:1px solid black; width:400px">&nbsp;</td>
        </tr>
        <tr>
            <td colspan="2" style="border:1px solid black; border-top:none; height:50px; padding:10px; vertical-align:top">
                Test ....
            </td>
        </tr>
    </table>
    <br />

    <% if (Session["Global.User"] != null)
       { %>

        <table style="display:none">
            <tr>
                <td><b>待提交的预算</b></td>
                <td><input type="button" value="提交" onclick="openUploadWin()" class="budget-button-no-01"/></td>
            </tr>
        </table>

        <br />
    
        <table border="0" cellpadding="0" cellspacing="0" class="budget-table-no-01">
            <thead>
                <tr>
                    <td>年度</td>
                    <td>类别</td>
                    <td>类型</td>
                    <td>编制单位</td>
                    <td>项目名称</td>
                    <td>项目代号</td>
                    <td>项目周期-起</td>
                    <td>项目周期-止</td>
                    <td>年度进度</td>
                    <td class="last">项目负责人</td>
                </tr>
            </thead>
            <tbody>
            <% foreach (vw_Budget One in Model.BudgetList)
               { %>
            <tr>
                <td><%=One.BudgetYear%></td>
                <td><%=One.ProjectCategoryName %></td>
                <td><%=One.ProjectTypeName %></td>
                <td><%=One.DepartmentName %></td>
                <td><a style="color:Blue; text-decoration:underline; cursor:pointer" onclick="OpenBudegt('<%=One.BudgetGuid %>', 'false', '')" ><%=One.ProjectName%></a></td>
                <td><%=One.ProjectCode %></td>
                <td><%=One.ProjectBeginTime %></td>
                <td><%=One.ProjectEndTime %></td>
                <td><%=One.AnnualProgress %></td>
                <td><%=One.ProjectPICName %></td>
            </tr>
            <% } %>
            </tbody>
        </table>

    <% } %>

</asp:Content>
